#include "SoundSource.h"

const char* SoundSource::COMPLAIN_SOUND_PATH = "media/sfx/comprainingsound.wav";
const char* SoundSource::PAIN_SOUND_PATH = "media/sfx/painsound.wav";
const char* SoundSource::DIE_SOUND_PATH = "media/sfx/painsound.wav";
const char* SoundSource::GUNSHOT_SOUND_PATH = "media/sfx/gunshot.wav";
const char* SoundSource::BACKGROUND_SOUND_PATH = "media/sfx/shortbackground.wav";
const char* SoundSource::NEWWAVE_SOUND_PATH = "media/sfx/newwave.wav";

bool SoundSource::playNewWave;
Sound SoundSource::complainSound;
Sound SoundSource::painSound;
Sound SoundSource::dieSound;
Sound SoundSource::backgroundSound;
Sound SoundSource::shotSound;
Sound SoundSource::newWaveSound;

SoundSource::SoundSource()
{
    playNewWave = true;
    SoundSource::backgroundSound.load(SoundSource::BACKGROUND_SOUND_PATH);
    SoundSource::backgroundSound.loop();
    SoundSource::backgroundSound.play();

    SoundSource::painSound.load(SoundSource::PAIN_SOUND_PATH);
    SoundSource::dieSound.load(SoundSource::DIE_SOUND_PATH);
    SoundSource::shotSound.load(SoundSource::GUNSHOT_SOUND_PATH);
    SoundSource::complainSound.load(SoundSource::COMPLAIN_SOUND_PATH);
    SoundSource::newWaveSound.load(SoundSource::NEWWAVE_SOUND_PATH);
}
